import _fetch from './request'
function userList (params) {
  return _fetch({
    url: '/user/list',
    method: 'get',
    params
  })
}
function setUserStatus (data) {
  return _fetch({
    url: '/user/status',
    method: 'post',
    data
  })
}
function removeUserInfo (data) {
  return _fetch({
    url: '/user/remove',
    method: 'post',
    data
  })
}
function addUserInfo (data) {
  return _fetch({
    url: '/user/add',
    method: 'post',
    data
  })
}
function editUserInfo (data) {
  return _fetch({
    url: '/user/edit',
    method: 'post',
    data
  })
}
export { userList, setUserStatus, removeUserInfo, addUserInfo, editUserInfo }
